home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 12
/
Cream of the Crop 12 (Part II)
/
Cream of the Crop 12 (Part II).iso
/
BBS
/
EZY120_1.ZIP
/
STRUCT.ARJ
/
CLIB.ARJ
/
FSIZE.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-03-09
|
352 b
|
19 lines
#include <ezycom.h>
#include <stdio.h>
#include <io.h>
#include <stdlib.h>
#include <dir.h>
#include <dos.h>
longint FileSize(FILE *hStream)
{
return(filelength(fileno(hStream)));
}
longint FileSize(char *Filename)
{
struct ffblk ffblk;
return(((findfirst(Filename,&ffblk,FA_RDONLY | FA_ARCH) == 0) ? ffblk.ff_fsize : -1));
}